package com.demo.service;

import com.demo.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author :蕉绿
 * @Date : 2023/2/8 8:40
 * @Version : V1.0
 * @Description :
 */

@Service
public class UserService {

    private UserRepository repository;

    @Autowired
    public UserService(UserRepository repository) {
        this.repository = repository;
    }
    public void ServiceUser() {
        System.out.println(repository.user1());
    }
}
